import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [

  /*{
    path: '/Login', //登录
    name: 'Login',
    component:Login
  },*/
  {
    path: '/', //主页
    name: 'Manage',
    component: () => import('../views/Manage'),
    redirect: "/pandect",
    children: [
      { path: 'pandect', name: 'Pandect', meta: {title: '首页'}, component: () => import('../views/pandect') },
      { path: 'BatchManage', name: 'BatchManage', meta: {title: '审批管理'}, component: () => import('../views/BatchManage') },
	]
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
